<?php if (!isset($_SESSION['weibo_user'])) { //第三方用户不能修改头像 由第三方平台修改 ?>
    <div style="padding:10px 15px 0px 15px">
        <div class="am-form-group am-form-file">
            <i class="am-icon-cloud-upload app-main-color"></i>
            &nbsp;选择要上传的图片
            <input id="img_upload" name="img_upload" type="file"
                   onchange="img_upload_change(this)">
        </div>
        <div id="img_upload_data">
            <input style="display:none" name="controller" type="text" value="user_cfg"/>
            <input style="display:none" name="cfg_type" type="text" value="1"/>
            <input style="display:none" name="cfg_user_msg" type="text" value="1"/>
            <input style="display:none" name="cfg_user_avatar" type="text" value="upload"/>
        </div>
        <div>
            <canvas id="img_demo_canvas" width="64" height="64"></canvas>
        </div>
        <hr/>
        <button type="button" class="am-btn app-main-backcolor am-fr app-white-color"
                data-forward="controller=img_editor&edit_type=5&user_id=<?= $InputData['user_id'] ?>"
                data-canvas="img_demo_canvas"
                onclick="img_upload_file(this)">
            确定
        </button>
    </div>
    <?php
} else {
    $warningText = '请在第三方平台修改头像';
    require("{$CfgPara->root}/view/warning_text.app.v.php");
} ?>